package com.tastesport.chat.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Baozi
 * @date 2019/7/3 21:16
 * @description：自定义配置信息
 */
@Component
public class CustomAttr {

    @Value("${custom-attr.fastdfs.storage-server}")
    private String fastdfsServer;

    @Value("${custom-attr.fastdfs.config}")
    private String fastdfsConfig;

    public String getFastdfsServer() {
        return fastdfsServer == null ? "" : fastdfsServer.trim();
    }

    public String getFastdfsConfig() {
        return fastdfsConfig == null ? "" : fastdfsConfig.trim();
    }
}
